<?php
/*@var $form yii\widgets\ActiveForm */

use yii\widgets\ActiveForm;
use yii\helpers\Html;
use yii\captcha\Captcha;
?>

<?php
$form=ActiveForm::begin([
	'options'=>[
		'enctype'=>'multipart/form-data'
	],	
]);
?>
<?=$form->field($loginModel, 'username')->textInput() ?>
<?=$form->field($loginModel, 'Pwd')->passwordInput() ?>
<?=$form->field($loginModel, 'verifycode')->widget(Captcha::className(),[
	'captchaAction'=>'user/captcha',
	'template'=>'{input}{image}'
]) ?>
<?=$form->field($loginModel, 'remmber')->checkbox() ?>
<?=Html::submitButton('登陆') ?>
<?php 
ActiveForm::end();
?>